package day06;

public class Method2 {
    public static void main(String[] args) {
        say();
        sayHi("权利");
        sayHello("江山","美人");
        double z =getNum();
        System.out.println(z);
        int x =pius(66,666);
        System.out.println(x);
        int [] v = testArray(8,100);
    }
    public static void say(){
        System.out.println("我喜欢金钱");
    }
    public static void sayHi(String anything){
        System.out.println("我喜欢"+anything);
    }
    public static void sayHello(String anything,String anythings){
        System.out.println("我喜欢"+anything+"和"+anythings);
    }
    public static double getNum(){
        return 6.66;
    }
    public static int pius(int numb1,int numb2){
        int numb = numb1+numb2;
        return numb;
    }
    public static int[] testArray(int len,int max){
        int[] ar = new int[len];
        for (int i = 0;i<ar.length;i++){
            ar[i] =(int)(Math.random()*(max+1));
            System.out.println(ar[i]);
        }
        return ar;
    }
}
